package com.schoolpro.mapper;


import com.schoolpro.pojo.DO.CategoryDO;
import com.schoolpro.pojo.DTO.CategoryUpdateDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author : Hinton
* @时间 : 1月 22 23:21
*/


@Mapper
public interface CategoryMapper {

    void insert(CategoryDO categoryDO);

    void deleteCategory(List<Integer> ids);

    void updateCategory(CategoryUpdateDTO categoryUpdateRequest);

    CategoryDO getById(Integer id);

    CategoryDO getByName(String name, String nameCn);
}
